package com.draemon.haixiawenti.repository;

import com.yangzcp.userpojo.B_wulong;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Map;

/**
 * <p></p>
 *
 * @author  yangz
 * @date    2016/11/13
 * @version latest
 */
public interface B_wulongRepository extends JpaRepository<B_wulong, Integer>{

    @Query("select count(*) from B_wulong where ref_saicheng.id=?1 and ref_qiudui.id=?2")
    public int countWuLong(Integer saichengid, Integer qiuduiid);
}
